# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer:  Francesco Colista <fcolista@alpinelinux.org>
pkgname=gource
pkgver=0.53
pkgrel=2
pkgdesc="Software version control visualization"
url="https://gource.io/"
arch="all !s390x"
license="GPL-3.0"
makedepends="ftgl-dev sdl2-dev sdl2_image-dev pcre2-dev glew-dev libpng-dev
	libjpeg-turbo-dev glu-dev boost-dev glm-dev"
subpackages="$pkgname-doc"
source="https://github.com/acaudwell/Gource/releases/download/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz
disable-failing-test.patch"

build() {
	./configure --prefix=/usr
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
e4190eb581d9998808d1bb4f18ba5a3ae22bacf643b9a150c7d1607e97fca2eab720592aefdcc6a47f92adb4a8df17db48bb941a67ee3d23a10f300754f473be  gource-0.53.tar.gz
65a66b8b4c6facd859cd10f9a7030d2a4803ffb4056cbe48577c976cb6943c5dbd0c2c932808e25323300cc99ed232b5f31c5599ccd4aabcba814dfa42734b88  disable-failing-test.patch
"
